FROM nginx:latest
COPY nginx.conf /etc/nginx/nginx.conf
RUN echo '<!DOCTYPE html><html><head><meta charset="utf-8"><title>筱怪的博客</title></head><body><h1>筱怪的博客-v1.0.2</h1></body></html>' > /usr/share/nginx/html/index.html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]